/*
 * @Descripttion: 
 * @version: 
 * @Author: -ViJia
 * @Date: 2022-03-17 10:12:16
 * @LastEditors: -ViJia
 * @LastEditTime: 2022-03-23 17:04:32
 */
import request from '@/utils/request';

// 订单管理
// export const GetOrderList = data => request.post('steward/order/ProductOrder/index', data); // 商品订单列表
// export const GetOrderInfo = data => request.post('steward/order/ProductOrder/view', data); // 商品订单详情
// export const ExportOrder = data => request.post('steward/order/ProductOrder/export',data,{ responseType: 'blob' }); //商品订单导出

// 获取用户动态路由
export const GetBaseMenuTree = data => request.post('manager/menu/getBaseMenuTree', data); //获取所有menu
export const GetMenuAuthority = data => request.post('manager/menu/getMenuAuthority', data); //获取指定角色menu
export const AddMenuAuthority = data => request.post('manager/menu/addMenuAuthority', data); //设置角色menu权限
export const GetBaseMenuById = data => request.post('manager/menu/getBaseMenuById', data); //根据id获取菜单menu

// // 品牌管理
// export const GetBrandList = data => request.get('manager/product/getBrandList', {'params':data}); //品牌列表
// export const BrandAdd = data => request.post('manager/product/addBrand', data); //品牌添加
// export const BrandEdit = data => request.post('manager/product/updateBrand', data); //品牌编辑
// export const BrandStatus = data => request.post('manager/product/offBrand', data); //品牌上下架
// export const BrandDel = data => request.post('manager/product/delBrand', data); //品牌删除

// 平台用户管理
export const GetUserList = data => request.get('manager/cliuser/getUserList', {'params':data}); //用户列表
export const GetBabyListData = data => request.get('manager/cliuser/getUserBabyList', {'params':data}); //宝宝列表
export const GetBabyInfo = data => request.get('manager/cliuser/getBabyInfo', {'params':data}); //宝宝信息
export const GetUserCollectList = data => request.get('manager/cliuser/getUserCollectList', {'params':data}); //获取用户收藏食谱
export const DelUserCollect = data => request.post('manager/cliuser/delUserCollect', data); //删除收藏食谱
export const DelUser = data => request.post('manager/cliuser/delUser', data); //删除用户
export const GetBabyAllergyList = data => request.get('manager/cliuser/getBabyAllergyList', {'params':data}); //宝宝过敏列表
export const GetBabyPlanList = data => request.get('manager/cliuser/getBabyPlanList', {'params':data}); //宝宝辅食计划列表

// // 商品管理
// export const GetProductList = data => request.get('manager/product/getGoodsList', {'params':data}); //商品列表
// export const ProductSave = data => request.post('manager/product/saveGoods', data); //商品 新增/编辑
// export const GetProductDetail = data => request.get('manager/product/getGoodsDetails', {'params':data}); //商品详情
// export const ProductDel = data => request.post('manager/product/delGoods', data); //商品删除
// export const SetProductStatus = data => request.post('manager/product/setGoodsStatus', data); //商品上下架

// // 原产地管理
// export const GetPlaceList = data => request.get('manager/product/getPlaceList', {'params':data}); //原产地列表
// export const PlaceAdd = data => request.post('manager/product/addPlace', data); //添加原产地
// export const PlaceEdit = data => request.post('manager/product/updatePlace', data); //修改原产地
// export const PlaceStatus = data => request.post('manager/product/offPlace', data); //上下架原产地
// export const PlaceDel = data => request.post('manager/product/delPlace', data); //删除原产地


// // 分类管理
// export const GetCateList = data => request.get('manager/product/getCateList', {'params':data}); //分类列表
// export const CateAdd = data => request.post('manager/product/addCate', data); //新增分类
// export const CateEdit = data => request.post('manager/product/updateCate', data); //编辑分类
// export const ChangeCateStatus = data => request.post('manager/product/offCate', data); //分类上下架
// export const CateDelete = data => request.post('manager/product/delCate', data); //删除分类


// // 食谱管理
// export const GetFoodList = data => request.get('manager/food/getFoodList', {'params':data}); //获取食谱列表
// export const AddFood = data => request.post('manager/food/addFood', data); //添加食谱
// export const EditFood = data => request.post('manager/food/updateFood', data); //修改食谱
// export const DelFood = data => request.post('manager/food/delFood', data); //删除食谱

// export const GetStageList = data => request.get('manager/food/getStageList', {'params':data}); //获取阶段列表
// // 推荐食谱（餐单）
// export const GetMealList = data => request.get('manager/food/getMealList', {'params':data}); //根据阶段ID获取餐段列表(进食时间)
// export const GetMenusList = data => request.get('manager/food/getMenusList', {'params':data}); //根据阶段ID获取餐段列表(进食时间)
// export const AddMenus = data => request.post('manager/food/addMenus', data); //新增餐单
// export const UpdateMenus = data => request.post('manager/food/updateMenus', data); //更新餐单
// export const DelMenus = data => request.post('manager/food/delMenus', data); //删除餐单


// // 食谱分类
// export const GetFoodCateList = data => request.get('manager/food/getFoodCateList', {'params':data}); //获取食谱分类列表
// export const AddFoodCate = data => request.post('manager/food/addFoodCate', data); //添加食谱分类
// export const EditFoodCate = data => request.post('manager/food/updateFoodCate', data); //修改食谱分类
// export const DelFoodCate = data => request.post('manager/food/delFoodCate', data); //删除食谱分类

// // 食材
// export const GetMaterialList = data => request.get('manager/food/getMaterialList', {'params':data}); //获取食材列表
// export const AddMaterial = data => request.post('manager/food/addMaterial', data); //添加食材
// export const EditMaterial = data => request.post('manager/food/updateMaterial', data); //修食改材
// export const DelMaterial = data => request.post('manager/food/delMaterial', data); //删除食材

// // 食材分类
// export const GetMaterialCateList = data => request.get('manager/food/getMaterialCateList', {'params':data}); //获取食材分类列表
// export const AddMaterialCate = data => request.post('manager/food/addMaterialCate', data); //添加食材分类
// export const EditMaterialCate = data => request.post('manager/food/updateMaterialCate', data); //修改食材分类
// export const DelMaterialCate = data => request.post('manager/food/delMaterialCate', data); //删除食材分类

// // 订单管理
// export const GetOrderList = data => request.get('manager/product/getOrderList', {'params':data}); //订单列表
// export const GetOrderDetail = data => request.get('manager/product/getOrderDetails', {'params':data}); //订单详情
// export const DeliverGoods = data => request.post('manager/product/deliverGoods', data); //订单发货
// export const EnterDeliveryNo = data => request.post('manager/product/enterDeliveryNo', data); //填写物流单号
// export const GetExpressName = data => request.get('manager/product/getExpressName',  {'params':data}); // 获取物流公司列表

// // 推送管理
// export const GetNoticeList = data => request.get('manager/notice/getNoticeList', {'params':data}); //获取推送列表
// export const AddNotice = data => request.post('manager/notice/addNotice', data); //新增推送

// // 优惠券管理
// export const GetCouponList = data => request.get('manager/product/getCouponList', {'params':data}); //获取优惠券列表
// export const AddCoupon = data => request.post('manager/product/addCoupon', data); //新增优惠券
// export const EditCoupon = data => request.post('manager/product/updateCoupon', data); //编辑优惠券
// export const DelCoupon = data => request.post('manager/product/delCoupon', data); //删除优惠券
// export const GetCouponRecordList = data => request.get('manager/product/getCouponRecordList', {'params':data}); //获取优惠券领取使用列表

// 权限管理
export const GetMenuList = data => request.post('manager/menu/getMenuList', data); //获取基础menu列表
export const AddBaseMenu = data => request.post('manager/menu/addBaseMenu', data); //新增menu
export const UpdateBaseMenu = data => request.post('manager/menu/updateBaseMenu', data); //编辑menu
export const DeleteBaseMenu = data => request.post('manager/menu/deleteBaseMenu', data); //删除menu

export const GetAuthorityList = data => request.post('manager/authority/getAuthorityList', data); //获取角色列表
export const CreateAuthority = data => request.post('manager/authority/createAuthority', data); //创建角色
export const UpdateAuthority = data => request.post('manager/authority/updateAuthority', data); //更新角色
export const DeleteAuthority = data => request.post('manager/authority/deleteAuthority', data); //删除角色


// 日志管理
export const GetSysOperationRecordList = data => request.get('manager/sysOperationRecord/getSysOperationRecordList', {'params':data}); //操作日志
export const DeleteSysOperationRecord = data => request.delete('manager/sysOperationRecord/deleteSysOperationRecord', {'data':data}); //删除管理员


// // VIP兑换码
// export const GetVipCodeList = data => request.get('manager/cliuser/getVipCodeList', {'params':data}); //VIP兑换码列表
// export const MakeVipCode = data => request.post('manager/cliuser/makeVipCode', data); //生产VIP兑换码
// export const DelVipCode = data => request.post('manager/cliuser/delVipCode', data); //删除VIP兑换码

// // vip购买订单
// export const GetVipOrderList = data => request.get('manager/cliuser/getVipOrderList', {'params':data}); //VIP兑换码列表
// export const GetVipOrderDetails = data => request.get('manager/cliuser/getVipOrderDetails', {'params':data}); //VIP兑换码列表


// 协议管理
export const GetTreatyList = data => request.get('manager/cliuser/getTreatyList', {'params':data}); //协议列表
export const GetTreatyDetails = data => request.get('manager/cliuser/getTreatyDetails', {'params':data}); //协议详情
export const AddTreaty = data => request.post('manager/cliuser/addTreaty', data); //新增协议
export const UpdateTreaty = data => request.post('manager/cliuser/updateTreaty', data); //编辑协议
export const DelTreaty = data => request.post('manager/cliuser/delTreaty', data); //删除协议


// // VIP类型
// export const GetVipTypeList = data => request.get('manager/cliuser/getVipTypeList', {'params':data}); //获取VIP类型列表(卷面值)
// export const AddVipType = data => request.post('manager/cliuser/addVipType', data); //新增VIP类型
// export const UpdateVipType = data => request.post('manager/cliuser/updateVipType', data); //编辑VIP类型
// export const DelVipType = data => request.post('manager/cliuser/delVipType', data); //删除VIP类型


// // 资讯管理
// export const GetNewsInfoList = data => request.get('manager/news/getNewsList',  {'params':data}); //获取资讯列表
// export const AddNewsInfo = data => request.post('manager/news/addNews', data); //添加资讯
// export const UpdateNewsInfo = data => request.post('manager/news/updateNews', data); //修改资讯
// export const DelNewsInfo = data => request.post('manager/news/delNews', data); //删除资讯
// export const OffNewsInfo = data => request.post('manager/news/offNews', data); //上下架资讯

// // Sn产品发码管理
// // 产品分类
// export const GetSnCateList = data => request.get('manager/sn/getCateList',  {'params':data}); //获取Sn分类列表
// export const AddSnCate = data => request.post('manager/sn/addCate', data); //添加Sn分类
// export const UpdateSnCate = data => request.post('manager/sn/updateCate', data); //修改Sn分类
// export const DelSnCate = data => request.post('manager/sn/delCate', data); //删除Sn分类

// export const GetSnProductList = data => request.get('manager/sn/getSnGoodsList',  {'params':data}); //获取Sn产品列表
// export const AddEditSnProduct = data => request.post('manager/sn/saveGoods', data); //添加编辑Sn产品
// export const DelSnProduct= data => request.post('manager/sn/delGoods', data); //删除Sn产品

// export const SetNum= data => request.post('manager/sn/setNum', data); //新增发码
// export const GetSnSendCodeInfo = data => request.get('manager/sn/getSnCodeDetails',  {'params':data}); //发码详情

// export const GetBindRecord = data => request.get('manager/sn/getSnBindList',  {'params':data}); //绑定记录
// export const GetUnBindRecord = data => request.get('manager/sn/getSnUnBindList',  {'params':data}); //解绑记录
// export const UnBind= data => request.post('manager/sn/unBind', data); //解绑SN
// export const NewBind= data => request.post('manager/sn/makeNewSn', data); //生成新的SN


// 轮播图管理
export const GetBannerList = data => request.get('manager/news/getBannerList',  {'params':data}); //获取轮播图列表
export const AddBanner= data => request.post('manager/news/addBanner', data); //新增轮播图
export const UpdateBanner= data => request.post('manager/news/updateBanner', data); //修改轮播图
export const DelBanner= data => request.post('manager/news/delBanner', data); //删除轮播图
export const OffBanner= data => request.post('manager/news/offBanner', data); //上下架轮播图


// 监控后台
export const GetDataSoureList = data => request.get('manager/cam/getCamSourceList',  {'params':data}); //数据源列表
export const AddDataSource= data => request.post('manager/cam/createCamSource', data); //新增数据源
export const UpdateDataSource= data => request.put('manager/cam/updateCamSource', data); //新增数据源
export const DeleteDataSource= data => request.delete('manager/cam/deleteCamSource', {'data':data}); //新增数据源

export const Getcamlayoutlist = data => request.get('manager/cam/getCamLayoutList',  {'params':data}); //获取展示框架数据源列表
export const GetCamLayoutDataList = data => request.get('manager/cam/getCamLayoutDataList',  {'params':data}); //获取展示框架数据源列表
export const CreateCamLayoutData= data => request.post('manager/cam/createCamLayoutData', data); //创建展示框架数据源
export const UpdateCamLayoutData= data => request.put('manager/cam/updateCamLayoutData', data); //更新展示框架数据源
export const DeleteCamLayoutData= data => request.delete('manager/cam/deleteCamLayoutData', {'data':data}); //删除展示框架数据源
export const UpdateCamLayout= data => request.put('manager/cam/updateCamLayout', data); //选择/更新展示框架


// AI音频后台
// 会员管理
export const GetAdminUserList = data => request.get('admin/ai.Member/getList', {'params':data}); //获取管理员列表
export const AdminRegister = data => request.post('admin/ai.Member/add', data); //新增管理员
export const SetAdminEdit = data => request.post('admin/ai.Member/edit', data); //修改管理员
export const SetAdminRecharge = data => request.post('admin/ai.Member/recharge', data); //管理员充点
export const SetAdminReduce = data => request.post('admin/ai.Member/reduce', data); //管理员充点

export const SetDistri = data => request.get('admin/ai.Member/setPromoter', {'params':data}); //设为分销员

// export const DeleteUser = data => request.post('manager/user/deleteUser', data); //删除管理员
// export const GetUserInfo = data => request.get('manager/user/getUserInfo', {'params':data}); //获取管理员信息

// // 音色
// export const GetAiVoiceList = data => request.get('manager/ai/getVoiceList',  {'params':data}); //音色列表
// export const TrainVoice = data => request.post('manager/ai/train', data); //训练音色
// // 音频
// export const GetDataList = data => request.get('manager/ai/getDataList', {'params':data}); //音频列表
// export const MakeHandle = data => request.post('manager/ai/make', data); //训练音色
// export const DeleteVoice= data => request.delete('manager/ai/deleteData', {'data':data}); //删除音频

// 系统配置
export const GetSystemConfig = data => request.get('admin/ai.SystemConfig/getList', {'params':data}); //系统配置列表
export const SystemConfigSave = data => request.post('admin/ai.SystemConfig/save', data); //系统配置保存
export const SystemConfigRefresh = data => request.post('admin/ai.SystemConfig/refresh', data); //系统配置刷新


// 点用户数使用列表
export const UserUseOrderList = data => request.get('admin/ai.Order/getList', {'params':data}); //

// 用户会员管理
export const GetMemberList = data => request.get('admin/ai.Member/getList', {'params':data}); //

// 分销员管理
export const DistributorList = data => request.get('admin/ai.Promoter/getList', {'params':data}); //分销员列表
export const CommandList = data => request.get('admin/ai.Promoter/getCommissionList', {'params':data}); //分销员数据

// 数据统计
export const AdminDataAll = data => request.get('admin/ai.Stat/index', {'params':data}); //


